package com.shensi.adminCollect.service.customer.impl;

import com.shensi.adminCollect.domain.customer.CustomerDialogueAdTemplate;
import com.shensi.adminCollect.mapper.customer.CustomerDialogueAdTemplateMapper;
import com.shensi.adminCollect.service.customer.ICustomerDialogueAdTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * adService业务层处理
 * 
 * @author joeley
 * @date 2022-09-29
 */


@Service
public class CustomerDialogueAdTemplateServiceImpl implements ICustomerDialogueAdTemplateService 
{
    @Autowired
    private CustomerDialogueAdTemplateMapper customerDialogueAdTemplateMapper;

    /**
     * 查询ad
     * 
     * @param adId adID
     * @return ad
     */
    @Override
    public CustomerDialogueAdTemplate selectCustomerDialogueAdTemplateById(Long adId)
    {
        return customerDialogueAdTemplateMapper.selectCustomerDialogueAdTemplateById(adId);
    }

    /**
     * 查询ad列表
     * 
     * @param customerDialogueAdTemplate ad
     * @return ad
     */
    @Override
    public List<CustomerDialogueAdTemplate> selectCustomerDialogueAdTemplateList(CustomerDialogueAdTemplate customerDialogueAdTemplate)
    {
        return customerDialogueAdTemplateMapper.selectCustomerDialogueAdTemplateList(customerDialogueAdTemplate);
    }

    /**
     * 新增ad
     * 
     * @param customerDialogueAdTemplate ad
     * @return 结果
     */
    @Override
    public int insertCustomerDialogueAdTemplate(CustomerDialogueAdTemplate customerDialogueAdTemplate)
    {
        return customerDialogueAdTemplateMapper.insertCustomerDialogueAdTemplate(customerDialogueAdTemplate);
    }

    /**
     * 修改ad
     * 
     * @param customerDialogueAdTemplate ad
     * @return 结果
     */
    @Override
    public int updateCustomerDialogueAdTemplate(CustomerDialogueAdTemplate customerDialogueAdTemplate)
    {
        return customerDialogueAdTemplateMapper.updateCustomerDialogueAdTemplate(customerDialogueAdTemplate);
    }

    /**
     * 批量删除ad
     * 
     * @param adIds 需要删除的adID
     * @return 结果
     */
    @Override
    public int deleteCustomerDialogueAdTemplateByIds(Long[] adIds)
    {
        return customerDialogueAdTemplateMapper.deleteCustomerDialogueAdTemplateByIds(adIds);
    }

    /**
     * 删除ad信息
     * 
     * @param adId adID
     * @return 结果
     */
    @Override
    public int deleteCustomerDialogueAdTemplateById(Long adId)
    {
        return customerDialogueAdTemplateMapper.deleteCustomerDialogueAdTemplateById(adId);
    }
}
